package Demo03;

interface IA{

}

class A implements IA{

}

class B implements IA{

}

public class test2 {
    public static IA func(){
        return new B();
    }

    public static void main(String[] args) {
        IA ia=new A();
        IA ia1=new B();
        IA[] ias=new IA[]{new A(),new B()};

    }

}



